/**
 * Created with IntelliJ IDEA
 * Description
 * User:华为
 * Date:2024/12/22
 * Time:15:12
 */
public class Text {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        myArrayList.add(1,50);
        myArrayList.add(1,50);
        //myArrayList.add(88,10);
        System.out.println(myArrayList.get(2));
        //myArrayList.get(10);
        myArrayList.display();
    }
    public static void main1(String[] args) {
        MyArrayList myArrayList = new MyArrayList();

        IList iList =new MyArrayList();

        System.out.println(myArrayList.size());
        System.out.println(iList.size());
        myArrayList.display();
        iList.display();
    }
}
